﻿
using Android.App;
using Android.Widget;
using Android.OS;
using System;
using Android.Content;

namespace TestActionBar
{
	[Activity (Label = "TestLockScreen", MainLauncher = true, Icon = "@drawable/icon", ScreenOrientation = Android.Content.PM.ScreenOrientation.Portrait)]
	public class MainActivity : Activity
	{
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);

			// Set our view from the "main" layout resource
			SetContentView (Resource.Layout.Main);
			 
			// Get our button from the layout resource,
			// and attach an event to it
			Button button = FindViewById<Button> (Resource.Id.myButton);
			
			button.Click += delegate {

			};
 
			Intent musicIntent = new Intent (this, typeof(MediaPlayerService));
			musicIntent.SetAction (Constants.ACTION_PLAY);
			this.StartService (musicIntent);
			 
		}
	}
}


